<template>
  <div class="swiper-container">
    <div class="swiper-wrapper">
      <div class="swiper-slide" v-for="item in company_img" :key="item.id">
        <img :src="item" />
      </div>
      
    </div>
    <div class="address iconfont">
      <i>&#xe618;</i>
      <p>{{this.company_headquarters}}</p>
      <span>全部地址&#xe601;</span>
    </div>
  </div>
</template>

<script>
import { mapState, mapMutations } from "vuex";
import Swiper from "swiper";

export default {
  name: "cDetailSynopsis",
  data() {
    return {};
  },
  props: {
    company_img:Array,
    company_headquarters: String
  },
  computed: {
    //   ...mapState({userMsg: "userMsg"})
  },
  methods: {},
  mounted() {
    var swiper = new Swiper(".swiper-container", {
      slidesPerView: 1.15,
      slidesOffsetAfter: 20,
      slidesOffsetBefore: 20,
      spaceBetween: 10,
      // loop: true
    });
  }
};
</script>
<style lang="scss" scoped>
@import "~styles/varibles.styl";

li {
  list-style-type: none;
}

.swiper-slide {
  position: relative;
  height: 25vh;
  img {
    border-radius: 2.5vw;
    width: 85vw;
    height: 25vh;
  }
}
.address {
  width: 100vw;
  // margin-top: 0.2rem;
  padding: 0.3rem 0.3rem;
  border-bottom: 0.01rem solid #eaeaea;
  font-size: 0.3rem;
  i {
    font-size: 0.4rem;
  }
  p {
    display: inline-block;
    width: 60vw;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #444444;
  }
  span {
    display: inline-block;
    margin-left: 8vw;
    color: #a1a1a1;
  }
}
</style>
